Skip to content

Update stable with new PW rules#3042

Merged
Licho1 merged 25 commits intostablefrom
master
Apr 29, 2026
Merged

Update stable with new PW rules#3042
Licho1 merged 25 commits intostablefrom
master

Conversation

@Licho1
Copy link
Copy Markdown
Member

@Licho1 Licho1 commented Apr 24, 2026

No description provided.

Licho1 added 25 commits April 12, 2026 17:51
…yerIsAttacker flags

previously DefendCollect hid the attacked planet from attackers themselves (their
faction filtered out), so they only got a one-shot PwAttackingPlanet and no live
defender-count / deadline updates. now the matchmaker broadcasts every attacked
planet to every PW user and tags each option with two per-viewer bools so chobby
can render attacker/defender/spectator states off a single payload. no names or
rosters are added to the payload.
Gate JoinPlanetAttack on having >=1 charge (when PwAttackChargesMax > 0
in DynamicConfig). Attackers spend 1 charge when their squad actually
launches (LaunchAllBattles), so merely clicking without forming a squad
does not cost anything. Defenders gain 1 charge at battle end (via
ProcessBattleResult). Passive recharge: a player who has sat below max
for PwAttackChargesRechargeMinutes gains 1 charge; fresh/zero-initialised
accounts get their recharge timer set lazily on the first passive pass.

PwCharges protocol message (Current, Max, SecondsUntilNextCharge) is
pushed to the player on login and after every change. Max=0 disables
the system. StartGalaxy seeds every account to the configured maximum.
add per-player attack charges to planetwars
Removing faction attacker concept from planetwars
@Licho1 Licho1 merged commit 6530c14 into stable Apr 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant